/*
 * Location.h
 *
 *  Created on: Jul 1, 2009
 *      Author: kurt
 */

#ifndef LOCATION_H_
#define LOCATION_H_

#include "Object.h"

namespace objdraw 
{

class Location: public objdraw::Object 
{
	public:
		float x,y;
		
		virtual ~Location();
		Location();
		Location(const Location & _r) { x = _r.x; y = _r.y; }
		Location(float _x, float _y);
		
		virtual float distanceTo(Location point);
		virtual float getX();
		virtual float getY();
		
		virtual void setX(float _x);
		virtual void setY(float _y);
		
		virtual void translate(float _x, float _y);
		virtual void moveTo(float _x, float _y);
		
		virtual std::string toString();
		
		virtual bool operator== (Location & point);
};

}

#endif /* LOCATION_H_ */
